func performOperation(_ operation: (Int, Int) -> Int, a: Int, b: Int) {
    let result = operation(a, b)
    print("Result of the operation is \(result)")
}

performOperation(+, a: 10, b: 20) // 使用加法运算符作为参数传递给函数